package com.rabbiter.bms.service;


import com.rabbiter.bms.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
public interface TscaleService {
    Integer getCount();

    List<BookInfo> queryBookInfos();

    BookInfo queryBookInfoById(Integer bookid);

    Integer getSearchCount(Map<String, Object> params);

    List<BookInfo> searchBookInfosByPage(Map<String, Object> params);

    Integer addBookInfo(BookInfo bookInfo);

    Integer deleteBookInfo(BookInfo bookInfo);

    Integer deleteBookInfos(List<BookInfo> bookInfos);

    Integer updateBookInfo(BookInfo bookInfo);

    Integer SearchCount(Map<String, Object> params);

    int SearchUploadCount(UploadTable table);

    List<TScaleTypeTree> searchTScalesByPage(Map<String, Object> params);

    Integer insertUploadTable(UploadTable table);

    Integer deleteUploadTable(UploadTable table);

    Integer insertUploadTable(List<TScaleVO> tScales, int userId);

    Integer deleteUploadTable(List<TScaleVO> tScales, int userId);

    int getCountQuestionnaire(AnswerSheet answerSheet);

    List<Questionnaire> selectQuestionnaireByFormId(AnswerSheet answerSheet);

    int insertResult(AnswerSheet answerSheet);

    Map<String,List<AnswerType>> getAnswerType();

    List<Form> getForms(String token);
    Integer getProgramCount(Map<String, Object> params);
    List<TProgram> searchProgramByPage(Map<String, Object> params);
    int insertTProgram(TProgram tProgram);
    Integer deleteTProgram(TProgram tProgram);
    Integer  deleteTPrograms(List<TProgram> tPrograms);

    Integer updateTProgram(TProgram tProgram);
    List<Ryxx> getRyxx();
    int insertRyxx(Ryxx ryxx);
    List<Ryxx> selectRyxx(Map<String,Object> ryxx);
    Ryxx selectRyxx(String id);
    int updateRyxx(Ryxx ryxx);
    int insertPreProgram(Map<String,Object> param);
    List<Map<String,Object>> getItems(String scaleId);
    Map<String,Object> newInsertTProgram(TProgram tProgram);
    int TProgramStatus(Map<String,Object> param);
}
